<template>
  <div id="index">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <!-- 引入底部组件 -->
    <!-- 组件名加了—就要在引入合注册的时候改成大写 -->
    <footer-tabbar />
  </div>
</template>

<script>
import footerTabbar from "@/components/footer-tabbar";
export default {
  name: "Index",
  data() {
    return {
      active: 0,
    };
  },
  components: {
    footerTabbar,
  },
};
</script>

<style></style>
